﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第八十四题
//BC86 奇偶统计
//https://www.nowcoder.com/practice/04de8eb0ecab426fa6be3ae99af17210?tpId=107&tqId=33367&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3Fpage%3D2%26tpId%3D107%26type%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int N = 0;
    scanf("%d", &N);
    int count1 = 0;//统计奇数
    int count2 = 0;//统计偶数

    for (int i = 1; i <= N; i++) {
        if (i % 2 == 0)
            count2++;
        else if (i % 2 == 1)
            count1++;
    }

    printf("%d %d\n", count1, count2);

    return 0;
}